package org.csu.molediary.api.service;

import org.csu.molediary.api.common.CommonResponse;
import org.csu.molediary.api.entity.Diary;
import org.csu.molediary.api.vo.AccountId;
import org.csu.molediary.api.vo.DiaryVO;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface DiaryService {

    CommonResponse<List<DiaryVO>> getDiaryList();

    CommonResponse<DiaryVO> getDiaryByContentId(int contentid);

    CommonResponse<List<DiaryVO>> getDiaryByAccountId(String accountid);

    CommonResponse<String> deleteDiaryByContentId(int contentid);

    CommonResponse<Diary> createDiary(String content, String title, String accountid, int tagid, String province,
                                      String distinct, String city, String photo1, String photo2, String photo3,String diarydate);

    CommonResponse<AccountId> getAccountIdByDiaryId(int contentid);

    CommonResponse<List<DiaryVO>> getDiaryByTitle(String tit);

    CommonResponse<List<DiaryVO>> getDiaryByGood( String accountid);

    CommonResponse<Diary> addNumDiary(int diaryid);
}
